﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace LeEdu.MODEL
{
    [DisplayName("用户表")]
    public class UserInfo
    {
        [DisplayName("用户ID")]
        public int UserInfoId { get; set; }
        [DisplayName("用户名")]
        public string Uname { get; set; }
        [DisplayName("密码")]
        public string Upwd { get; set; }

        [DisplayName("用户类型,0为管理员，1是学生,2是教师")]
        public int RoleId { get; set; }

        [DisplayName("是否推荐教师,首先必须是教师。0否，1推荐")]
        public int Tisornot { get; set; }

        [DisplayName("性别")]

        public int Sex { get; set; }
        [DisplayName("身份证号")]

        public string IDCard { get; set; }
        [DisplayName("手机号")]
        public string PhoneNum { get; set; }
        [DisplayName("公司")]
        public string Company { get; set; }
        [DisplayName("职业")]
        public string Job { get; set; }
        [DisplayName("头衔")]
        public string Post { get; set; }
        [DisplayName("个人签名")]
        public string Idiograph { get; set; }
        [DisplayName("自我介绍")]

        public string Self { get; set; }
        [DisplayName("个人主页")]
        public string PersonalHome { set; get; }
        [DisplayName("微博")]
        public string Microblog { get; set; }
        [DisplayName("QQ")]
        public string QQ { get; set; }
        [DisplayName("微信")]
        public string WeChat { get; set; }
        [DisplayName("邮箱")]
        public string Email { get; set; }
        [DisplayName("头像")]
        public string Avatar { get; set; }
        [DisplayName("姓名")]
        public string XingMing { get; set; }
        [DisplayName("时间")]
        public DateTime UTime { get; set; }

        [DisplayName("教师审核")]
        public int TeacherCheck { get; set; }
        [DisplayName("收件地址")]
        public string EmailAddress { get; set; }
        [DisplayName("邮件内容")]
        public string EmailContent { get; set; }
        [DisplayName("用户的封禁状态")]
        public int SealState { get; set; }
        public virtual ICollection<Bulletin> Bulletin { get; set; }
        public virtual ICollection<Message> Message { get; set; }
        public virtual ICollection<Topicshi> Topicshi { get; set; }
        public virtual ICollection<Reply> Reply { get; set; }
        public virtual ICollection<UserAndGroup> UserAndGroup { get; set; }

    }
}
